We used to save an empty variant, and load it for no reason, we can just
avoid saving at all (and deleting if needed)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4400>
(cherry picked from commit
ee95df839920b20ae4633d1bfd89a97384fbee2f)
}
global.set_persistent_state(NOTIFICATION_SERIALIZED_NAME,
- new GLib.Variant(NOTIFICATION_SERIALIZED_FORMAT, sources));
+ sources.length
+ ? new GLib.Variant(NOTIFICATION_SERIALIZED_FORMAT, sources)
+ : null);
}
AddNotificationAsync(params, invocation) {